package com.sxj.corejava.code11_io.字节流;

import com.sxj.corejava.code07_面向对象.封装.Test03;
import com.sxj.corejava.util.FileUtil;

import java.io.File;
import java.net.URISyntaxException;

/**
 * @author 石小俊
 * @date 2024年05月16日 20:26
 */
public class Test03_文件拷贝 {

    public static void main(String[] args) throws URISyntaxException {
//        FileUtil.copyFile("aa.txt","cc.txt");
//        File src = new File("corejava/src/aaa.txt");
//        File target = new File("corejava/src/bbb.txt");
//        FileUtil.copyFile(src,target);

//        FileUtil.copyDirectory("E:/itany/aa","E:/itany/bb");
//        FileUtil.recursiveCopy("E:/itany","E:/test");
//        FileUtil.splitFile("E:/itany/ideaIU-2018.2.exe",100000000);
//        FileUtil.mergeFile("E:/itany/ideaIU-2018.2.exe_1");
        FileUtil.mergeFile(new File("E:/itany/ideaIU-2018.2.exe_2"));
    }


}
